<template>
  <div>
    <Topbarr />
    <Play />
    <div class="danqu">
      <div class="warpper">
        <router-link to="/danqus/gequ">歌曲</router-link>
        <router-link to="/danqus/geshou">歌手</router-link>
        <router-link to="/danqus/zhuanji">专辑</router-link>
        <router-link to="/danqus/wenjianjia">文件夹</router-link>
      </div>
    </div>
    <router-view></router-view>
    <div class="warpper">
      <div class="box4">
        <div
          class="contentbox"
          v-for="(v, i) in obj"
          :key="i"
          @click="Tofaviourates()"
        >
          <img :src="v.songlisturl" alt="" />
          <p class="p1">{{ v.songlistid }}</p>
          <p class="p3">{{ v.songlisttitle }}</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import Topbarr from "@/components/myt/topbarr.vue";
import { getdata } from "@/api/getlink.js";
export default {
  data() {
    return {
      obj: {},
    };
  },
  methods: {
    Tofaviourates() {
      this.$router.push("/fa")
    },
  },
  components: {
    Topbarr,
  },
  mounted() {
    // http://d8bcfn.natappfree.cc/wySonglist/getSonglist
    getdata("/proxy/wySonglist/getSonglist", { songlistid: 1 }).then((ok) => {
      console.log(ok.data.data);
      this.obj = ok.data.data;
    });
  },
  computed: {
    arr() {
      return this.$route.query.xiaoming;
    },
  },
};
</script>

<style leng="less" scoped>
.danqu {
  height: 0.97rem;
  width: 100%;
}
.warpper {
  margin: 0 auto;
  width: 6.86rem;
  height: 100%;
  display: flex;
  justify-content: space-around;
}
a {
  text-align: center;
  color: #515151;
  font-size: 0.29rem;
}
.box4 {
  width: 100%;
  height: 3.06rem;
  font-size: 0.3rem;
  margin: 0 auto;
  flex-wrap: warp;
}
.contentbox {
  display: flex;
  line-height: 1.53rem;
  justify-content: space-between;
  align-items: center;
}
p {
  color: #585858;
  line-height: 0.38rem;
}
img {
  width: 1.8rem;
  height: 1.8rem;
  margin: 0.3rem;
  border-radius: 50%;
}
</style>